求玫瑰花数
def flower():
    lst = []
    for i in range(1000, 10000):
        a = i%10
        b = i%100//10
        c = i//100%10
        d = i//1000
        result = a**4+b**4+c**4+d**4
        if result == i:
            lst.append(i)
    print(f'玫瑰花是{lst}')


flower()
